package com.heima.admin.controller.v1;

import com.heima.admin.service.AdUserService;
import com.heima.model.admin.dtos.AdUserDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JW
 * @Description: TODO
 * @DateTime: 2022-02-18 18:09
 **/
@RestController
@RequestMapping("/login")
public class LoginController {


    @Autowired
    private AdUserService adUserService;


    /**
     * @Author: JW
     * @Description:  TODO 登录
     * @Date: 18:12 2022-02-18
     * @Param: []
     * @return: com.heima.model.common.dtos.ResponseResult
    **/
    @PostMapping("/in")
    public ResponseResult in(@RequestBody AdUserDto adUserDto){

        return adUserService.in(adUserDto);

    }
}
